//
//  LeftCell.m
//  FamilyTravel
//
//  Created by dllo on 15/10/30.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "LeftCell.h"
#import "HYCHeadDocument.h"


#define WIDTH self.contentView.frame.size.width
#define HEIFGT self.contentView.frame.size.height
@implementation LeftCell

-(void)dealloc{
    [_image release];
    [_label release];
    [_view release];

    
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        self.view = [[UIView alloc] init];
        self.view.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:self.view];
        
        self.image = [[UIImageView alloc] init];
        [self.view addSubview:self.image];
//       self.image.backgroundColor = [UIColor redColor];
        
        
        self.label = [[UILabel alloc] init];
        [self.view addSubview:self.label];
        self.label.backgroundColor = [UIColor clearColor];
        [self.contentView bringSubviewToFront:self.view];

        
    
        
    }
    return self;
}


-(void)layoutSubviews{
    
    [super layoutSubviews];
    
    

    
    self.view.frame = CGRectMake(0, 0, WIDTH, HEIFGT);
    self.image.frame = CGRectMake(10, 10, 25, 25);
    self.label.frame = CGRectMake(40, 10, WIDTH  - 20, 20);
    
//    self.label.highlightedTextColor = [UIColor lightGrayColor];
//    self.label.font = [UIFont fontWithName:@"HelveticaNeue" size:21];
    self.label.font = [UIFont systemFontOfSize:21];
    self.label.textColor = [UIColor whiteColor];
    
    
}


@end
